
.contract-config{
  display: flex;
  flex-direction: column;
  height: 100%;
  &-tabs{
    display: flex;
    justify-content: space-between;
    align-items:  center;
    border-bottom: 1px solid rgba(194, 212, 232, 1);
    :deep(.arco-tabs){
      padding-top: 33px;
    }
    :deep(.arco-tabs-nav-type-line .arco-tabs-tab){
      margin-left: 0;
    }
    :deep(.arco-tabs-tab-title){
      padding: 0 11px 0 16px;
    }
    :deep(.arco-tabs-nav::before){
      background-color: transparent;
    }
    :deep(.arco-tabs-content){
      padding-top: 0;
    }
  }
  &-body{
    flex: 1;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(3, minMax(276px , 1fr));
    gap: 16px;
    background-color: rgba(4, 19, 74, 0.04);
    box-shadow: 4px 5px 16px 0 rgba(4,19,74,0.04);
    border-radius: 0 0 10px 10px;
    .template-item{
      display: flex;
      flex-direction: column;
      align-items:  center;
      overflow: hidden;
      &-header{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 90%;
        height: 50px;
        background-color: #E2E8F0;
        border-radius: 10px 10px 0 0;
        font-size: 18px;
        color: #213270;
        line-height: 24px;
      }
      &-content{
        position: relative;
        display: flex;
        flex-direction: column;
        flex:1;
        overflow-y: auto;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        background-color: #FFFFFF;
        border-radius: 10px;
        border: 1px solid #E1E6ED;
        img{
          position: absolute;
          left: 50%;
          top: 0;
          transform: translateX(-25px);
          width: 50px;
          height: 12px;
        }
      }
      // 列表
      .quotation-template-list,
      .agreement-template-list,
      .plan-template-list{
        flex:1;
        overflow-y: auto;
        margin:23px 10px 0;
      }
      // 报价模板
      .quotation-template-item{
        font-size: 14px;
        color: #86909C;
        line-height: 36px;
      }
      // 协议模板
      .agreement-template-item{
        @include flex-between;
        margin:10px auto 12px ;
        .label{
          font-size: 14px;
          color: #007DFF;
          line-height: 22px;
        }
        .label,
        :deep(.svg-icon){
          cursor: pointer;
        }
      }
      // 收款计划
      .plan-template-item{
        .template-item-label{
          margin-bottom: 10px;
          font-size: 14px;
          color: #86909C;
          line-height: 22px;
        }
        &+ .plan-template-item{
          margin-top: 20px;
        }
      }
    }
  }
}

.template-list-button{
  text-align: center;
  padding: 10px 0 20px;
  :deep(.arco-btn){
    width: 130px;
  }
}

:deep(.custom-empty){
  @include position-center;
}

// 下拉框-自定义远程搜索
.search-select-container{
  @include flex-align;
}

.add-modal-form{
  margin-top: 24px;
  .custom-form{
    @include flex-align;
    &-label{
      width: 106px;
      white-space: nowrap;
      margin-right: 10px;
      font-size: 14px;
      color: #4E5969;
      line-height: 22px;
      &:before{
        content: '*';
        display: inline-block;
        margin-right: 5px;
        color: #F53F3F;
      }
    }
  }
}

.del-modal-message{
  @include flex-align;
  flex-direction: column;
  width: 100%;
  .del-name{
    @include flex-inline-flex;
    width: 200px;
    height: 60px;
    margin: 20px auto 10px;
    border: 1px solid #dcdfe6;
  }
  .del-tip{
    margin-bottom: 23px;
  }
}

// 收款计划列表
:deep(.arco-table-header) th {
  color: #909399 !important;
  background-color: #f2f6fc !important;
}
:deep(.arco-table-body) tr td {
  color: #606266 !important;
}
:deep(.arco-table-body) tr:nth-child(2n) td {
  background-color: #f5f7fa !important;
}

// 设置收款计划
.payment-plan-drawer{
  @include flex;
  flex-direction: column;
  height: 100%;
  .payment-plan-header{
    @include flex-between;
    justify-content: space-between;
    margin: 24px 0 20px;
    :deep(.arco-radio-group){
      @include flex;
    }
  }
  .payment-plan-body{
    position: relative;
    flex: 1;
    overflow-y: auto;
    .payment-plan-item{
      padding: 10px 10px 20px;
      border-radius: 4px;
      border: 1px solid #E1E6ED;
      .search-select-label{
        @include flex-align;
        margin-bottom: 16px;
        .label{
          white-space: nowrap;
          font-size: 14px;
          color: #4E5969;
          line-height: 22px;
          &:before{
            content: '*';
            display: inline-block;
            margin-right: 5px;
            color: #F53F3F;
          }
        }
        :deep(.arco-select){
          //width: 336px;
          margin: 0 14px 0 10px;
          border: 0;
        }
        :deep(.svg-icon){
          margin-left: auto;
          cursor: pointer;
        }
      }
      .payment-plan-table{
        :deep(.arco-table-tr-empty){
          display: none;
        }
        :deep(.arco-table-body){
          min-height: 0;
        }
        :deep(.arco-select){
          background-color: #fff;
        }
        :deep(.arco-input-wrapper){
          background-color: #fff;
        }
        :deep(.arco-btn){
          padding: 0;
        }
        .add-task-node{
          @include flex-align;
          height: 51px;
          color: rgb(var(--primary-6));
          line-height: 44px;
          border: 1px solid var(--color-border-table);
          border-top: 0;
          padding-left: 54px;
          cursor: pointer;
          user-select: none;
        }
      }
      &+ .payment-plan-item{
        margin-top: 20px;
      }
    }
  }
}
:deep(.arco-drawer-footer){
  border-top: 0;
}
.payment-plan-footer{
  @include flex-center;
  margin:10px 0 32px;
}
.signing-method{
  display: flex;
  align-items: center;
  padding: 11px 20px;
  color: #4E5969;
  .signing-name{
    font-weight: 400;
    font-size: 16px;
    margin-right: 100px;
  }
}
.ellipsis {
  overflow: hidden; /*内容超出后隐藏*/
  text-overflow: ellipsis; /*超出内容显示为省略号*/
  white-space: nowrap; /*文本不进行换行*/
}
